package com.reyco1.medusa.util
{
	public class StringUtil
	{
		public static function getTimecode(num:Number):String 
		{
			var t:Number = Math.round(num);
			var min:Number = Math.floor(t/60);
			var sec:Number = t%60;
			var tc:String = new String("");
			
			if(min < 10)
				tc += "0";
			
			if(min >= 1)
				tc += min.toString();
			else
				tc += "0";
			
			tc += ":";
			
			if(sec < 10)
			{
				tc += "0";
				tc += sec.toString();
			}
			else
				tc += sec.toString();
			
			return tc;	
		}
	}
}